package com.zh.util.dict;

public class Validator {
    /**
     * 正则表达式：验证手机号
     */
    public static final String REGEX_MOBILE = "^1\\d{10}$";
    /**
     * 正则表达式: 纯数字
     * */
    public static final String REGEX_ONLYNUM =  "^-?\\d+$";
    /**
     * 正则表达式：验证密码
     */
    public static final String REGEX_PASSWORD = "^[a-zA-Z0-9]{6,32}$";

    /**
     * 正则表达式：用户名正则，6到32位（字母，数字，下划线，减号，感叹号）
     */
    public static final String REGEX_ACCOUNT = "^[a-zA-Z0-9_-！]{6,32}$";

    /**
     * 正则表达式：验证汉字中文名
     */
    public static final String REGEX_CHINESE_NAME = "^[\u4e00-\u9fa5]{2,}$";

    /**
     * 正则表达式：验证身份证
     */
    public static final String REGEX_ID_CARD = "^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X|x)$";

}
